<!DOCTYPE html>
<html>
<head>
<script src="../../dist/browser.js"></script>
<script type="text/civet">
  for color of ['red', 'green', 'blue']
    document.createElement 'h1'
    ||> .appendChild document.createTextNode 'Hello World!'
    ||> .style.color = color
    |> document.body.appendChild

  document.createElement 'script'
  ||> document.head.appendChild
  ||> .type = 'text/civet'
  ||> .innerHTML = "console.log 'Success loading dynamic script!'"
</script>
<script type="text/civet" src="./test.civet"></script>
</head>
<body>
</body>
</html>
